package com.leyou.common.vo;

import lombok.Data;
import org.joda.time.DateTime;

/**
 * 异常处理返回对象
 */
@Data
public class ExceptionResult {
    private Integer status;
    private String message;
    private String timestamp;

    public ExceptionResult(Integer status,String message){
        this.status = status;
        this.message = message;
        this.timestamp = DateTime.now().toString("yyyy-MM-dd HH:mm:ss");
    }

}
